const mutations = {
  setSinger(state, singer) {
    state.singer = singer;
  },
  setAlbum(state, album) {
    state.album = album;
  },
  updateToast(state, toast) {
    state.toast = toast;
  },
  setPlayingState(state, flag) {
    state.playing = flag;
  },
  setFullScreen(state, flag) {
    state.fullScreen = flag;
  },
  setPlaylist(state, list) {
    state.playlist = list;
  },
  setSequenceList(state, list) {
    state.sequenceList = list;
  },
  setPlayMode(state, mode) {
    state.mode = mode;
  },
  setCurrentIndex(state, index) {
    state.currentIndex = index;
  },
  setSearchHistory(state, list) {
    state.searchHistory = list;
  },
  setPlayHistory(state, list) {
    state.playHistory = list;
  },
  setFavoriteList(state, list) {
    state.favoriteList = list;
  },
};
export default mutations;
